package com.tianqu.tms.www.cardect.action;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import com.tianqu.tms.core.base.Logger;
import com.tianqu.tms.core.base.TmsAction;
import com.tianqu.tms.core.base.UserContext;
import com.tianqu.tms.core.util.StringUtil;
import com.tianqu.tms.core.util.TmsConstants;
import com.tianqu.tms.entity.TmsDetectPic;
import com.tianqu.tms.www.cardect.actionform.CarNormalDetectForm;
import com.tianqu.tms.www.cardect.viewhelper.CarNormalDetectInputViewHelper;
import com.tianqu.tms.www.cardect.viewhelper.CarNormalDetectViewHelper;
/**
 * 
 * 普通检测信息录入确认页
 * 
 * @author tianshifu
 *
 */
public class CarWCDNormalDetectConfirmAction extends TmsAction {
	private Logger logger = Logger.getLogger(CarWCDNormalDetectConfirmAction.class);//log
	private static final String DETECT_POSITION = "detect_position";//检测位置，标识哪个button提交
	private static final String DETECT_INPUT_DATA = "detect_input_data";//检测录入信息
	public static final String CARSERIAL = "carSerial";
	private static final String IMGLIST = "imgList";//用于存放图片对象的list
	
	@Override
	protected ActionForward doAction(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response,
			UserContext uc) throws Exception {
		logger.debug(this.getClass().getName() + "#execute was called.");		

		//从uc中获取数据参数看是按钮位置 来进行页面跳转判定，并带出相应的值
		//每次都进入到这个Action中 进入到这个页面的时候需要传过来一个位置ID 根据位置ID对对应的选项进行添加
		//每次都需要判断是否为空，为空的话过掉
		//从form中获取页面表单
		CarNormalDetectForm normalDetectForm = (CarNormalDetectForm)form;		
		CarNormalDetectInputViewHelper view = new CarNormalDetectInputViewHelper();//返回的时候需要冲uc中取值
		
		CarNormalDetectViewHelper topView = (CarNormalDetectViewHelper)uc.getAttribute(DETECT_INPUT_DATA);
		
		 double externalGrade = topView.getExternalGrade();// 外装评分 1 2.5s
		 double internalGrade = topView.getInternalGrade();// 内装评分 1 2 2 4 内饰
		 double engineGrade = topView.getEngineGrade();// 发动机评分
		 double electrinicsGrade = topView.getElectrinicsGrade();// 电子设备评分
		 double restsGrade = topView.getRestsGrade();// 其他设备评分 2 5
		 
		
		String actionForward = "";//点击不同的按钮跳转到不同的路径
		

		String	position = (String)uc.getAttribute(DETECT_POSITION);
		
		List<TmsDetectPic> list = (List<TmsDetectPic>)uc.getAttribute(IMGLIST);
		if(list!=null)
		{
			//将list中图片信息set到viewhelp中
			for(int i=0;i<list.size();i++)
			{
				TmsDetectPic entity = (TmsDetectPic)list.get(i);
				//从这里获取图片信息放到viewhelp中
				if(entity.getImgType() == 2)
				{

				if(entity.getImgKey().equals("1"))
				{
					view.setImg1(entity.getImgPath());
					topView.setImg1(entity.getImgPath());
				}
				if(entity.getImgKey().equals("2"))
				{
					view.setImg2(entity.getImgPath());
					topView.setImg2(entity.getImgPath());
				}
				if(entity.getImgKey().equals("3"))
				{
					view.setImg3(entity.getImgPath());
					topView.setImg3(entity.getImgPath());
				}
				if(entity.getImgKey().equals("4"))
				{
					view.setImg4(entity.getImgPath());
					topView.setImg4(entity.getImgPath());
				}
				if(entity.getImgKey().equals("5"))
				{
					view.setImg5(entity.getImgPath());
					topView.setImg5(entity.getImgPath());
				}
				if(entity.getImgKey().equals("6"))
				{
					view.setImg6(entity.getImgPath());
					topView.setImg6(entity.getImgPath());
				}
				if(entity.getImgKey().equals("7"))
				{
					view.setImg7(entity.getImgPath());
					topView.setImg7(entity.getImgPath());
				}
				if(entity.getImgKey().equals("8"))
				{
					view.setImg8(entity.getImgPath());
					topView.setImg8(entity.getImgPath());
				}
				if(entity.getImgKey().equals("9"))
				{
					view.setImg9(entity.getImgPath());
					topView.setImg9(entity.getImgPath());
				}
				if(entity.getImgKey().equals("10"))
				{
					view.setImg10(entity.getImgPath());
					topView.setImg10(entity.getImgPath());
				}
				if(entity.getImgKey().equals("11"))
				{
					view.setImg11(entity.getImgPath());
					topView.setImg11(entity.getImgPath());
				}
				if(entity.getImgKey().equals("12"))
				{
					view.setImg12(entity.getImgPath());
					topView.setImg12(entity.getImgPath());
				}
				if(entity.getImgKey().equals("13"))
				{
					view.setImg13(entity.getImgPath());
					topView.setImg13(entity.getImgPath());
				}
				if(entity.getImgKey().equals("14"))
				{
					view.setImg14(entity.getImgPath());
					topView.setImg14(entity.getImgPath());
				}
				if(entity.getImgKey().equals("15"))
				{
					view.setImg15(entity.getImgPath());
					topView.setImg15(entity.getImgPath());
				}
				if(entity.getImgKey().equals("16"))
				{
					view.setImg16(entity.getImgPath());
					topView.setImg16(entity.getImgPath());
				}
				if(entity.getImgKey().equals("17"))
				{
					view.setImg17(entity.getImgPath());
					topView.setImg17(entity.getImgPath());
				}
				if(entity.getImgKey().equals("18"))
				{
					view.setImg18(entity.getImgPath());
					topView.setImg18(entity.getImgPath());
				}
				if(entity.getImgKey().equals("19"))
				{
					view.setImg19(entity.getImgPath());
					topView.setImg19(entity.getImgPath());
				}
				if(entity.getImgKey().equals("20"))
				{
					view.setImg20(entity.getImgPath());
					topView.setImg20(entity.getImgPath());
				}
				if(entity.getImgKey().equals("21"))
				{
					view.setImg21(entity.getImgPath());
					topView.setImg21(entity.getImgPath());
				}
				if(entity.getImgKey().equals("22"))
				{
					view.setImg22(entity.getImgPath());
					topView.setImg22(entity.getImgPath());
				}
				if(entity.getImgKey().equals("23"))
				{
					view.setImg23(entity.getImgPath());
					topView.setImg23(entity.getImgPath());
				}
				if(entity.getImgKey().equals("24"))
				{
					view.setImg24(entity.getImgPath());
					topView.setImg24(entity.getImgPath());
				}
				if(entity.getImgKey().equals("25"))
				{
					view.setImg25(entity.getImgPath());
					topView.setImg25(entity.getImgPath());
				}
				if(entity.getImgKey().equals("26"))
				{
					view.setImg26(entity.getImgPath());
					topView.setImg26(entity.getImgPath());
				}
				if(entity.getImgKey().equals("27"))
				{
					view.setImg27(entity.getImgPath());
					topView.setImg27(entity.getImgPath());
				}
				if(entity.getImgKey().equals("28"))
				{
					view.setImg28(entity.getImgPath());
					topView.setImg28(entity.getImgPath());
				}
				if(entity.getImgKey().equals("29"))
				{
					view.setImg29(entity.getImgPath());
					topView.setImg29(entity.getImgPath());
				}
				if(entity.getImgKey().equals("30"))
				{
					view.setImg30(entity.getImgPath());
					topView.setImg30(entity.getImgPath());
				}
				if(entity.getImgKey().equals("31"))
				{
					view.setImg31(entity.getImgPath());
					topView.setImg31(entity.getImgPath());
				}
				if(entity.getImgKey().equals("32"))
				{
					view.setImg32(entity.getImgPath());
					topView.setImg32(entity.getImgPath());
				}
				if(entity.getImgKey().equals("33"))
				{
					view.setImg33(entity.getImgPath());
					topView.setImg33(entity.getImgPath());
				}
				if(entity.getImgKey().equals("34"))
				{
					view.setImg34(entity.getImgPath());
					topView.setImg34(entity.getImgPath());
				}
				if(entity.getImgKey().equals("35"))
				{
					view.setImg35(entity.getImgPath());
					topView.setImg35(entity.getImgPath());
				}
				if(entity.getImgKey().equals("36"))
				{
					view.setImg36(entity.getImgPath());
					topView.setImg36(entity.getImgPath());
				}
				if(entity.getImgKey().equals("37"))
				{
					view.setImg37(entity.getImgPath());
					topView.setImg37(entity.getImgPath());
				}
				if(entity.getImgKey().equals("38"))
				{
					view.setImg38(entity.getImgPath());
					topView.setImg38(entity.getImgPath());
				}
				if(entity.getImgKey().equals("39"))
				{
					view.setImg39(entity.getImgPath());
					topView.setImg39(entity.getImgPath());
				}
				if(entity.getImgKey().equals("40"))
				{
					view.setImg40(entity.getImgPath());
					topView.setImg40(entity.getImgPath());
				}
				if(entity.getImgKey().equals("41"))
				{
					view.setImg41(entity.getImgPath());
					topView.setImg41(entity.getImgPath());
				}
				if(entity.getImgKey().equals("42"))
				{
					view.setImg42(entity.getImgPath());
					topView.setImg42(entity.getImgPath());
				}
				if(entity.getImgKey().equals("43"))
				{
					view.setImg43(entity.getImgPath());
					topView.setImg43(entity.getImgPath());
				}
				if(entity.getImgKey().equals("44"))
				{
					view.setImg44(entity.getImgPath());
					topView.setImg44(entity.getImgPath());
				}
				if(entity.getImgKey().equals("45"))
				{
					view.setImg45(entity.getImgPath());
					topView.setImg45(entity.getImgPath());
				}
				if(entity.getImgKey().equals("46"))
				{
					view.setImg46(entity.getImgPath());
					topView.setImg46(entity.getImgPath());
				}
				if(entity.getImgKey().equals("47"))
				{
					view.setImg47(entity.getImgPath());
					topView.setImg47(entity.getImgPath());
				}
				if(entity.getImgKey().equals("48"))
				{
					view.setImg48(entity.getImgPath());
					topView.setImg48(entity.getImgPath());
				}
				if(entity.getImgKey().equals("49"))
				{
					view.setImg49(entity.getImgPath());
					topView.setImg49(entity.getImgPath());
				}
				if(entity.getImgKey().equals("50"))
				{
					view.setImg50(entity.getImgPath());
					topView.setImg50(entity.getImgPath());
				}
				if(entity.getImgKey().equals("51"))
				{
					view.setImg51(entity.getImgPath());
					topView.setImg51(entity.getImgPath());
				}
				if(entity.getImgKey().equals("52"))
				{
					view.setImg52(entity.getImgPath());
					topView.setImg52(entity.getImgPath());
				}
				if(entity.getImgKey().equals("53"))
				{
					view.setImg53(entity.getImgPath());
					topView.setImg53(entity.getImgPath());
				}
				if(entity.getImgKey().equals("54"))
				{
					view.setImg54(entity.getImgPath());
					topView.setImg54(entity.getImgPath());
				}
				if(entity.getImgKey().equals("55"))
				{
					view.setImg55(entity.getImgPath());
					topView.setImg55(entity.getImgPath());
				}
				if(entity.getImgKey().equals("56"))
				{
					view.setImg56(entity.getImgPath());
					topView.setImg56(entity.getImgPath());
				}
				if(entity.getImgKey().equals("57"))
				{
					view.setImg57(entity.getImgPath());
					topView.setImg57(entity.getImgPath());
				}
				if(entity.getImgKey().equals("58"))
				{
					view.setImg58(entity.getImgPath());
					topView.setImg58(entity.getImgPath());
				}
				if(entity.getImgKey().equals("59"))
				{
					view.setImg59(entity.getImgPath());
					topView.setImg59(entity.getImgPath());
				}
				if(entity.getImgKey().equals("60"))
				{
					view.setImg60(entity.getImgPath());
					topView.setImg60(entity.getImgPath());
				}
				if(entity.getImgKey().equals("61"))
				{
					view.setImg61(entity.getImgPath());
					topView.setImg61(entity.getImgPath());
				}
				if(entity.getImgKey().equals("62"))
				{
					view.setImg62(entity.getImgPath());
					topView.setImg62(entity.getImgPath());
				}
				if(entity.getImgKey().equals("63"))
				{
					view.setImg63(entity.getImgPath());
					topView.setImg63(entity.getImgPath());
				}
				if(entity.getImgKey().equals("64"))
				{
					view.setImg64(entity.getImgPath());
					topView.setImg64(entity.getImgPath());
				}
				if(entity.getImgKey().equals("65"))
				{
					view.setImg65(entity.getImgPath());
					topView.setImg65(entity.getImgPath());
				}
				}
			}
		}else
		{
			view.setImg1("");
			view.setImg2("");
			view.setImg3("");
			view.setImg4("");
			view.setImg5("");
			view.setImg6("");
			view.setImg7("");
			view.setImg8("");
			view.setImg9("");
			view.setImg10("");
			view.setImg11("");
			view.setImg12("");
			view.setImg13("");
			view.setImg14("");
			view.setImg15("");
			view.setImg16("");
			view.setImg17("");
			view.setImg18("");
			view.setImg19("");
			view.setImg20("");
			view.setImg21("");
			view.setImg22("");
			view.setImg23("");
			view.setImg24("");
			view.setImg25("");
			view.setImg26("");
			view.setImg27("");
			view.setImg28("");
			view.setImg29("");
			view.setImg30("");
			view.setImg31("");
			view.setImg32("");
			view.setImg33("");
			view.setImg34("");
			view.setImg35("");
			view.setImg36("");
			view.setImg37("");
			view.setImg38("");
			view.setImg39("");
			view.setImg40("");
			view.setImg41("");
			view.setImg42("");
			view.setImg43("");
			view.setImg44("");
			view.setImg45("");
			view.setImg46("");
			view.setImg47("");
			view.setImg48("");
			view.setImg49("");
			view.setImg50("");
			view.setImg51("");
			view.setImg52("");
			view.setImg53("");
			view.setImg54("");
			view.setImg55("");
			view.setImg56("");
			view.setImg57("");
			view.setImg58("");
			view.setImg59("");
			view.setImg60("");
			view.setImg61("");
			view.setImg62("");
			view.setImg63("");
			view.setImg64("");
			view.setImg65("");
			topView.setImg1("");
			topView.setImg2("");
			topView.setImg3("");
			topView.setImg4("");
			topView.setImg5("");
			topView.setImg6("");
			topView.setImg7("");
			topView.setImg8("");
			topView.setImg9("");
			topView.setImg10("");
			topView.setImg11("");
			topView.setImg12("");
			topView.setImg13("");
			topView.setImg14("");
			topView.setImg15("");
			topView.setImg16("");
			topView.setImg17("");
			topView.setImg18("");
			topView.setImg19("");
			topView.setImg20("");
			topView.setImg21("");
			topView.setImg22("");
			topView.setImg23("");
			topView.setImg24("");
			topView.setImg25("");
			topView.setImg26("");
			topView.setImg27("");
			topView.setImg28("");
			topView.setImg29("");
			topView.setImg30("");
			topView.setImg31("");
			topView.setImg32("");
			topView.setImg33("");
			topView.setImg34("");
			topView.setImg35("");
			topView.setImg36("");
			topView.setImg37("");
			topView.setImg38("");
			topView.setImg39("");
			topView.setImg40("");
			topView.setImg41("");
			topView.setImg42("");
			topView.setImg43("");
			topView.setImg44("");
			topView.setImg45("");
			topView.setImg46("");
			topView.setImg47("");
			topView.setImg48("");
			topView.setImg49("");
			topView.setImg50("");
			topView.setImg51("");
			topView.setImg52("");
			topView.setImg53("");
			topView.setImg54("");
			topView.setImg55("");
			topView.setImg56("");
			topView.setImg57("");
			topView.setImg58("");
			topView.setImg59("");
			topView.setImg60("");
			topView.setImg61("");
			topView.setImg62("");
			topView.setImg63("");
			topView.setImg64("");
			topView.setImg65("");
		}
		
		//根据位置跳转到不同的页面
		if(position.equals("1"))
		{
			//一、左前门检测录入  向页面打出信息 
			//左前门	 左A柱	左B柱	左前门内饰   左前门玻璃  左前门下边沿	左前车身底板	左前车身底盘	左侧中部车身纵梁
			view.setFrontLeftChkS1(transStr(normalDetectForm.getFrontLeftChkS1()));
			view.setFrontLeftChkS2(transStr(normalDetectForm.getFrontLeftChkS2()));
			view.setFrontLeftChkS3(transStr(normalDetectForm.getFrontLeftChkS3()));
			view.setFrontLeftChkS4(transStr(normalDetectForm.getFrontLeftChkS4()));
			view.setFrontLeftChkS5(transStr(normalDetectForm.getFrontLeftChkS5()));
			view.setFrontLeftChkS6(transStr(normalDetectForm.getFrontLeftChkS6()));
			view.setFrontLeftChkS7(transStr(normalDetectForm.getFrontLeftChkS7()));
			view.setFrontLeftChkS8(transStr(normalDetectForm.getFrontLeftChkS8()));
			view.setFrontLeftChkS9(transStr(normalDetectForm.getFrontLeftChkS9()));
			view.setFrontLeftChkC1(transStr(normalDetectForm.getFrontLeftChkC1()));
			view.setFrontLeftChkC4(transStr(normalDetectForm.getFrontLeftChkC4()));
			view.setFrontLeftChkC5(transStr(normalDetectForm.getFrontLeftChkC5()));
			view.setFrontLeftChkC6(transStr(normalDetectForm.getFrontLeftChkC6()));
			view.setFrontLeftChkC7(transStr(normalDetectForm.getFrontLeftChkC7()));
			view.setFrontLeftChkC8(transStr(normalDetectForm.getFrontLeftChkC8()));
			
			if(!StringUtil.isNullOrBlank(normalDetectForm.getFrontLeftChkC1()))//左前门
			{
				if(normalDetectForm.getFrontLeftChkC1().equals("1"))
				{
					//扣1
					externalGrade = externalGrade - 1;
				}else{
					//扣2.5
					externalGrade = externalGrade - 2.5;
				}
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getFrontLeftChkS2()))// 左A柱
			{
				topView.setTroubleCar(1);
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getFrontLeftChkS3()))//左B柱
			{
				topView.setTroubleCar(1);
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getFrontLeftChkC4()))//左前门内饰
			{
				//1 2 2 4 内饰
				if(normalDetectForm.getFrontLeftChkC4().equals("1"))
				{
					//扣1
					internalGrade = internalGrade - 2;
				}else{
					//扣2.5
					internalGrade = internalGrade - 4;
				}
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getFrontLeftChkC5()))//左前门玻璃
			{
				if(normalDetectForm.getFrontLeftChkC5().equals("1"))
				{
					//扣1
					externalGrade = externalGrade - 1;
				}else{
					//扣2.5
					externalGrade = externalGrade - 2.5;
				}
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getFrontLeftChkC6()))//左前门下边沿
			{
				if(normalDetectForm.getFrontLeftChkC6().equals("1"))
				{
					//扣1
					externalGrade = externalGrade - 1;
				}else{
					//扣2.5
					externalGrade = externalGrade - 2.5;
				}				
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getFrontLeftChkC7()))//左前车身底板
			{
				if(normalDetectForm.getFrontLeftChkC7().equals("1"))
				{
					//扣1
					restsGrade = restsGrade - 2;
				}else{
					//扣2.5
					restsGrade = restsGrade - 5;
				}
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getFrontLeftChkC8()))//左前车身底盘
			{
				if(normalDetectForm.getFrontLeftChkC8().equals("1"))
				{
					//扣1
					restsGrade = restsGrade - 2;
				}else{
					//扣2.5
					restsGrade = restsGrade - 5;
				}				
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getFrontLeftChkS9()))//左侧中部车身纵梁
			{
				topView.setTroubleCar(1);
			}
			
			topView.setFrontLeftChk1(getdetectStr(normalDetectForm.getFrontLeftChkS1(),normalDetectForm.getFrontLeftChkC1()));
			topView.setFrontLeftChk2(transStr(normalDetectForm.getFrontLeftChkS2()));
			topView.setFrontLeftChk3(transStr(normalDetectForm.getFrontLeftChkS3()));
			topView.setFrontLeftChk4(getdetectStr(normalDetectForm.getFrontLeftChkS4(),normalDetectForm.getFrontLeftChkC4()));
			topView.setFrontLeftChk5(getdetectStr(normalDetectForm.getFrontLeftChkS5(),normalDetectForm.getFrontLeftChkC5()));
			topView.setFrontLeftChk6(getdetectStr(normalDetectForm.getFrontLeftChkS6(),normalDetectForm.getFrontLeftChkC6()));
			topView.setFrontLeftChk7(getdetectStr(normalDetectForm.getFrontLeftChkS7(),normalDetectForm.getFrontLeftChkC7()));
			topView.setFrontLeftChk8(getdetectStr(normalDetectForm.getFrontLeftChkS8(),normalDetectForm.getFrontLeftChkC8()));
			topView.setFrontLeftChk9(transStr(normalDetectForm.getFrontLeftChkS9()));
			uc.removeAttribute(DETECT_POSITION);
			uc.setAttribute(DETECT_POSITION, "1");
			
		}
		if(position.equals("2"))
		{
			//二、内饰检测录入
			view.setInsideChkS1(transStr(normalDetectForm.getInsideChkS1()));
			view.setInsideChkS2(transStr(normalDetectForm.getInsideChkS2()));
			view.setInsideChkS3(transStr(normalDetectForm.getInsideChkS3()));
			view.setInsideChkS4(transStr(normalDetectForm.getInsideChkS4()));
			view.setInsideChkS5(transStr(normalDetectForm.getInsideChkS5()));
			view.setInsideChkS6(transStr(normalDetectForm.getInsideChkS6()));
			view.setInsideChkS7(transStr(normalDetectForm.getInsideChkS7()));
			view.setInsideChkS8(transStr(normalDetectForm.getInsideChkS8()));
			view.setInsideChkS9(transStr(normalDetectForm.getInsideChkS9()));
			view.setInsideChkS10(transStr(normalDetectForm.getInsideChkS10()));
			view.setInsideChkS11(transStr(normalDetectForm.getInsideChkS11()));
			view.setInsideChkS12(transStr(normalDetectForm.getInsideChkS12()));
			view.setInsideChkS13(transStr(normalDetectForm.getInsideChkS13()));
			view.setInsideChkS14(transStr(normalDetectForm.getInsideChkS14()));
			view.setInsideChkS15(transStr(normalDetectForm.getInsideChkS15()));
			view.setInsideChkS16(transStr(normalDetectForm.getInsideChkS16()));
			view.setInsideChkS17(transStr(normalDetectForm.getInsideChkS17()));
			view.setInsideChkS18(transStr(normalDetectForm.getInsideChkS18()));
			view.setInsideChkS19(transStr(normalDetectForm.getInsideChkS19()));
			view.setInsideChkS20(transStr(normalDetectForm.getInsideChkS20()));
			view.setInsideChkS21(transStr(normalDetectForm.getInsideChkS21()));
			view.setInsideChkS22(transStr(normalDetectForm.getInsideChkS22()));
			view.setInsideChkS23(transStr(normalDetectForm.getInsideChkS23()));
			view.setInsideChkS24(transStr(normalDetectForm.getInsideChkS24()));
			view.setInsideChkS25(transStr(normalDetectForm.getInsideChkS25()));
			view.setInsideChkS26(transStr(normalDetectForm.getInsideChkS26()));
			view.setInsideChkS27(transStr(normalDetectForm.getInsideChkS27()));
			view.setInsideChkS28(transStr(normalDetectForm.getInsideChkS28()));
			view.setInsideChkS29(transStr(normalDetectForm.getInsideChkS29()));
			view.setInsideChkS30(transStr(normalDetectForm.getInsideChkS30()));
			
			view.setInsideChkC1(transStr(normalDetectForm.getInsideChkC1()));
			view.setInsideChkC2(transStr(normalDetectForm.getInsideChkC2()));
			view.setInsideChkC3(transStr(normalDetectForm.getInsideChkC3()));
			view.setInsideChkC4(transStr(normalDetectForm.getInsideChkC4()));
			view.setInsideChkC5(transStr(normalDetectForm.getInsideChkC5()));
			view.setInsideChkC6(transStr(normalDetectForm.getInsideChkC6()));
			view.setInsideChkC7(transStr(normalDetectForm.getInsideChkC7()));
			view.setInsideChkC8(transStr(normalDetectForm.getInsideChkC8()));
			view.setInsideChkC9(transStr(normalDetectForm.getInsideChkC9()));
			view.setInsideChkC10(transStr(normalDetectForm.getInsideChkC10()));
			view.setInsideChkC11(transStr(normalDetectForm.getInsideChkC11()));
			view.setInsideChkC12(transStr(normalDetectForm.getInsideChkC12()));
			view.setInsideChkC13(transStr(normalDetectForm.getInsideChkC13()));
			view.setInsideChkC14(transStr(normalDetectForm.getInsideChkC14()));
			view.setInsideChkC15(transStr(normalDetectForm.getInsideChkC15()));
			view.setInsideChkC16(transStr(normalDetectForm.getInsideChkC16()));
			view.setInsideChkC17(transStr(normalDetectForm.getInsideChkC17()));
			view.setInsideChkC18(transStr(normalDetectForm.getInsideChkC18()));
			view.setInsideChkC19(transStr(normalDetectForm.getInsideChkC19()));
			view.setInsideChkC20(transStr(normalDetectForm.getInsideChkC20()));
			view.setInsideChkC21(transStr(normalDetectForm.getInsideChkC21()));
			view.setInsideChkC22(transStr(normalDetectForm.getInsideChkC22()));
			view.setInsideChkC23(transStr(normalDetectForm.getInsideChkC23()));
			view.setInsideChkC24(transStr(normalDetectForm.getInsideChkC24()));
			view.setInsideChkC25(transStr(normalDetectForm.getInsideChkC25()));
			view.setInsideChkC26(transStr(normalDetectForm.getInsideChkC26()));
			view.setInsideChkC27(transStr(normalDetectForm.getInsideChkC27()));
			view.setInsideChkC28(transStr(normalDetectForm.getInsideChkC28()));
			view.setInsideChkC29(transStr(normalDetectForm.getInsideChkC29()));
			view.setInsideChkC30(transStr(normalDetectForm.getInsideChkC30()));	

			if(!StringUtil.isNullOrBlank(normalDetectForm.getInsideChkC1()))//左前地毯	
			{
				//1 2 2 4 内饰
				if(normalDetectForm.getInsideChkC1().equals("1"))
				{
					internalGrade = internalGrade - 2;
				}else{
					internalGrade = internalGrade - 4;
				}				
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getInsideChkC2()))//左前座椅
			{
				//1 2 2 4 内饰
				if(normalDetectForm.getInsideChkC2().equals("1"))
				{
					internalGrade = internalGrade - 2;
				}else{
					internalGrade = internalGrade - 4;
				}				
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getInsideChkC3()))//驾驶舱前护板
			{
				//1 2 2 4 内饰
				if(normalDetectForm.getInsideChkC3().equals("1"))
				{
					internalGrade = internalGrade - 2;
				}else{
					internalGrade = internalGrade - 4;
				}				
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getInsideChkC4()))//左遮阳板
			{
				//1 2 2 4 内饰
				if(normalDetectForm.getInsideChkC4().equals("1"))
				{
					internalGrade = internalGrade - 2;
				}else{
					internalGrade = internalGrade - 4;
				}					
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getInsideChkC5()))//右遮阳板
			{
				//1 2 2 4 内饰
				if(normalDetectForm.getInsideChkC5().equals("1"))
				{
					internalGrade = internalGrade - 2;
				}else{
					internalGrade = internalGrade - 4;
				}					
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getInsideChkC6()))//车内后视镜
			{
				//1 2 2 4 内饰
				if(normalDetectForm.getInsideChkC6().equals("1"))
				{
					internalGrade = internalGrade - 2;
				}else{
					internalGrade = internalGrade - 4;
				}				
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getInsideChkC7()))//车顶内饰	
			{
				//1 2 2 4 内饰
				if(normalDetectForm.getInsideChkC7().equals("1"))
				{
					internalGrade = internalGrade - 2;
				}else{
					internalGrade = internalGrade - 4;
				}					
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getInsideChkC8()))//储物盒
			{
				//1 2 2 4 内饰
				if(normalDetectForm.getInsideChkC8().equals("1"))
				{
					internalGrade = internalGrade - 2;
				}else{
					internalGrade = internalGrade - 4;
				}				
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getInsideChkC9()))//左A支柱内饰
			{
				//1 2 2 4 内饰
				if(normalDetectForm.getInsideChkC9().equals("1"))
				{
					internalGrade = internalGrade - 2;
				}else{
					internalGrade = internalGrade - 4;
				}					
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getInsideChkC10()))//左B支柱内饰
			{
				//1 2 2 4 内饰
				if(normalDetectForm.getInsideChkC10().equals("1"))
				{
					internalGrade = internalGrade - 2;
				}else{
					internalGrade = internalGrade - 4;
				}					
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getInsideChkC11()))//安全带功能
			{
				electrinicsGrade = electrinicsGrade - 5;
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getInsideChkC12()))//发动机运转声音
			{
				if(normalDetectForm.getInsideChkC12().equals("2"))
				{
					engineGrade = engineGrade - 10;
				}
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getInsideChkC13()))//仪表盘
			{
				//1 2 2 4 内饰
				if(normalDetectForm.getInsideChkC13().equals("1"))
				{
					internalGrade = internalGrade - 2;
				}else{
					internalGrade = internalGrade - 4;
				}					
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getInsideChkC14()))//发动机故障灯
			{
				electrinicsGrade = electrinicsGrade - 20;
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getInsideChkC15()))//气囊故障灯
			{
				electrinicsGrade = electrinicsGrade - 10;
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getInsideChkC16()))//ABS故障灯
			{
				electrinicsGrade = electrinicsGrade - 5;
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getInsideChkC17()))//机油压力故障灯
			{
				electrinicsGrade = electrinicsGrade - 5;
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getInsideChkC18()))//室外照明灯功能
			{
				electrinicsGrade = electrinicsGrade - 5;
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getInsideChkC19()))//室内照明灯功能
			{
				electrinicsGrade = electrinicsGrade - 5;
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getInsideChkC20()))//变速箱换挡功能
			{
				if(normalDetectForm.getInsideChkC20().equals("2"))
				{
					engineGrade = engineGrade - 10;
				}				
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getInsideChkC21()))//驻车制动功能
			{
				if(normalDetectForm.getInsideChkC21().equals("2"))
				{
					engineGrade = engineGrade - 10;
				}					
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getInsideChkC22()))//空调系统工作
			{
				electrinicsGrade = electrinicsGrade - 5;
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getInsideChkC23()))//音响系统工作
			{
				electrinicsGrade = electrinicsGrade - 5;
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getInsideChkC24()))//雨刷功能
			{
				electrinicsGrade = electrinicsGrade - 5;
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getInsideChkC25()))//左后视镜功能
			{
				electrinicsGrade = electrinicsGrade - 5;
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getInsideChkC26()))//右后视镜功能
			{
				electrinicsGrade = electrinicsGrade - 5;
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getInsideChkC27()))//左前玻璃窗升降功能
			{
				electrinicsGrade = electrinicsGrade - 5;
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getInsideChkC28()))//右前玻璃窗升降功能
			{
				electrinicsGrade = electrinicsGrade - 5;
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getInsideChkC29()))//右后玻璃窗升降功能
			{
				electrinicsGrade = electrinicsGrade - 5;
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getInsideChkC30()))//左后玻璃窗升降功能
			{
				electrinicsGrade = electrinicsGrade - 5;
			}
			
			topView.setInsideChk1(getdetectStr(normalDetectForm.getInsideChkS1(),normalDetectForm.getInsideChkC1()));
			topView.setInsideChk2(getdetectStr(normalDetectForm.getInsideChkS2(),normalDetectForm.getInsideChkC2()));
			topView.setInsideChk3(getdetectStr(normalDetectForm.getInsideChkS3(),normalDetectForm.getInsideChkC3()));
			topView.setInsideChk4(getdetectStr(normalDetectForm.getInsideChkS4(),normalDetectForm.getInsideChkC4()));
			topView.setInsideChk5(getdetectStr(normalDetectForm.getInsideChkS5(),normalDetectForm.getInsideChkC5()));
			topView.setInsideChk6(getdetectStr(normalDetectForm.getInsideChkS6(),normalDetectForm.getInsideChkC6()));
			topView.setInsideChk7(getdetectStr(normalDetectForm.getInsideChkS7(),normalDetectForm.getInsideChkC7()));
			topView.setInsideChk8(getdetectStr(normalDetectForm.getInsideChkS8(),normalDetectForm.getInsideChkC8()));
			topView.setInsideChk9(getdetectStr(normalDetectForm.getInsideChkS9(),normalDetectForm.getInsideChkC9()));
			topView.setInsideChk10(getdetectStr(normalDetectForm.getInsideChkS10(),normalDetectForm.getInsideChkC10()));
			topView.setInsideChk11(getdetectStr(normalDetectForm.getInsideChkS11(),normalDetectForm.getInsideChkC11()));
			topView.setInsideChk12(getdetectStr(normalDetectForm.getInsideChkS12(),normalDetectForm.getInsideChkC12()));
			topView.setInsideChk13(getdetectStr(normalDetectForm.getInsideChkS13(),normalDetectForm.getInsideChkC13()));
			topView.setInsideChk14(getdetectStr(normalDetectForm.getInsideChkS14(),normalDetectForm.getInsideChkC14()));
			topView.setInsideChk15(getdetectStr(normalDetectForm.getInsideChkS15(),normalDetectForm.getInsideChkC15()));
			topView.setInsideChk16(getdetectStr(normalDetectForm.getInsideChkS16(),normalDetectForm.getInsideChkC16()));
			topView.setInsideChk17(getdetectStr(normalDetectForm.getInsideChkS17(),normalDetectForm.getInsideChkC17()));
			topView.setInsideChk18(getdetectStr(normalDetectForm.getInsideChkS18(),normalDetectForm.getInsideChkC18()));
			topView.setInsideChk19(getdetectStr(normalDetectForm.getInsideChkS19(),normalDetectForm.getInsideChkC19()));
			topView.setInsideChk20(getdetectStr(normalDetectForm.getInsideChkS20(),normalDetectForm.getInsideChkC20()));
			topView.setInsideChk21(getdetectStr(normalDetectForm.getInsideChkS21(),normalDetectForm.getInsideChkC21()));
			topView.setInsideChk22(getdetectStr(normalDetectForm.getInsideChkS22(),normalDetectForm.getInsideChkC22()));
			topView.setInsideChk23(getdetectStr(normalDetectForm.getInsideChkS23(),normalDetectForm.getInsideChkC23()));
			topView.setInsideChk24(getdetectStr(normalDetectForm.getInsideChkS24(),normalDetectForm.getInsideChkC24()));
			topView.setInsideChk25(getdetectStr(normalDetectForm.getInsideChkS25(),normalDetectForm.getInsideChkC25()));
			topView.setInsideChk26(getdetectStr(normalDetectForm.getInsideChkS26(),normalDetectForm.getInsideChkC26()));
			topView.setInsideChk27(getdetectStr(normalDetectForm.getInsideChkS27(),normalDetectForm.getInsideChkC27()));
			topView.setInsideChk28(getdetectStr(normalDetectForm.getInsideChkS28(),normalDetectForm.getInsideChkC28()));
			topView.setInsideChk29(getdetectStr(normalDetectForm.getInsideChkS29(),normalDetectForm.getInsideChkC29()));
			topView.setInsideChk30(getdetectStr(normalDetectForm.getInsideChkS30(),normalDetectForm.getInsideChkC30()));
			uc.removeAttribute(DETECT_POSITION);
			actionForward = "position2";
			uc.setAttribute(DETECT_POSITION, "2");
		}
		if(position.equals("3"))
		{
			//三、左前翼子板检测录入
			view.setPanelFenerLhChkS1(transStr(normalDetectForm.getPanelFenerLhChkS1()));
			view.setPanelFenerLhChkS2(transStr(normalDetectForm.getPanelFenerLhChkS2()));
			view.setPanelFenerLhChkS3(transStr(normalDetectForm.getPanelFenerLhChkS3()));
			view.setPanelFenerLhChkS4(transStr(normalDetectForm.getPanelFenerLhChkS4()));
			view.setPanelFenerLhChkS5(transStr(normalDetectForm.getPanelFenerLhChkS5()));
			view.setPanelFenerLhChkS6(transStr(normalDetectForm.getPanelFenerLhChkS6()));
			
			view.setPanelFenerLhChkC1(transStr(normalDetectForm.getPanelFenerLhChkC1()));
			view.setPanelFenerLhChkC2(transStr(normalDetectForm.getPanelFenerLhChkC2()));
			view.setPanelFenerLhChkC3(transStr(normalDetectForm.getPanelFenerLhChkC3()));
			view.setPanelFenerLhChkC4(transStr(normalDetectForm.getPanelFenerLhChkC4()));
			view.setPanelFenerLhChkC5(transStr(normalDetectForm.getPanelFenerLhChkC5()));
			view.setPanelFenerLhChkC6(transStr(normalDetectForm.getPanelFenerLhChkC6()));

			if(!StringUtil.isNullOrBlank(normalDetectForm.getPanelFenerLhChkC1()))//前挡风玻璃
			{
				if(normalDetectForm.getPanelFenerLhChkC1().equals("1"))
				{
					//扣1
					externalGrade = externalGrade - 1;
				}else{
					//扣2.5
					externalGrade = externalGrade - 2.5;
				}					
			}	
			if(!StringUtil.isNullOrBlank(normalDetectForm.getPanelFenerLhChkC2()))//左前翼子板
			{
				if(normalDetectForm.getPanelFenerLhChkC2().equals("1"))
				{
					//扣1
					externalGrade = externalGrade - 1;
				}else{
					//扣2.5
					externalGrade = externalGrade - 2.5;
				}					
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getPanelFenerLhChkC3()))//左前轮胎
			{
				if(normalDetectForm.getPanelFenerLhChkC3().equals("1"))
				{
					//扣1
					externalGrade = externalGrade - 1;
				}else{
					//扣2.5
					externalGrade = externalGrade - 2.5;
				}				
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getPanelFenerLhChkC4()))//左前轮毂
			{
				if(normalDetectForm.getPanelFenerLhChkC4().equals("1"))
				{
					//扣1
					externalGrade = externalGrade - 1;
				}else{
					//扣2.5
					externalGrade = externalGrade - 2.5;
				}				
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getPanelFenerLhChkC5()))//左前翼子板内衬
			{
				if(normalDetectForm.getPanelFenerLhChkC5().equals("1"))
				{
					restsGrade = restsGrade - 2;
				}else{
					restsGrade = restsGrade - 5;
				}					
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getPanelFenerLhChkC6()))//左前减震器
			{
				topView.setTroubleCar(1);
			}
			
			topView.setPanelFenerLhChk1(getdetectStr(normalDetectForm.getPanelFenerLhChkS1(),normalDetectForm.getPanelFenerLhChkC1()));
			topView.setPanelFenerLhChk2(getdetectStr(normalDetectForm.getPanelFenerLhChkS2(),normalDetectForm.getPanelFenerLhChkC2()));
			topView.setPanelFenerLhChk3(getdetectStr(normalDetectForm.getPanelFenerLhChkS3(),normalDetectForm.getPanelFenerLhChkC3()));
			topView.setPanelFenerLhChk4(getdetectStr(normalDetectForm.getPanelFenerLhChkS4(),normalDetectForm.getPanelFenerLhChkC4()));
			topView.setPanelFenerLhChk5(getdetectStr(normalDetectForm.getPanelFenerLhChkS5(),normalDetectForm.getPanelFenerLhChkC5()));
			topView.setPanelFenerLhChk6(getdetectStr(normalDetectForm.getPanelFenerLhChkS6(),normalDetectForm.getPanelFenerLhChkC6()));
			uc.removeAttribute(DETECT_POSITION);
			actionForward = "position3";
			uc.setAttribute(DETECT_POSITION, "3");
		}
		if(position.equals("4"))
		{
			//四、正前面检测录入
			view.setDeadAheadChkS1(transStr(normalDetectForm.getDeadAheadChkS1()));
			view.setDeadAheadChkS2(transStr(normalDetectForm.getDeadAheadChkS2()));
			view.setDeadAheadChkS3(transStr(normalDetectForm.getDeadAheadChkS3()));
			view.setDeadAheadChkS4(transStr(normalDetectForm.getDeadAheadChkS4()));
			view.setDeadAheadChkS5(transStr(normalDetectForm.getDeadAheadChkS5()));
			view.setDeadAheadChkS6(transStr(normalDetectForm.getDeadAheadChkS6()));
			
			view.setDeadAheadChkC1(transStr(normalDetectForm.getDeadAheadChkC1()));
			view.setDeadAheadChkC2(transStr(normalDetectForm.getDeadAheadChkC2()));
			view.setDeadAheadChkC3(transStr(normalDetectForm.getDeadAheadChkC3()));
			view.setDeadAheadChkC4(transStr(normalDetectForm.getDeadAheadChkC4()));
			view.setDeadAheadChkC5(transStr(normalDetectForm.getDeadAheadChkC5()));
			view.setDeadAheadChkC6(transStr(normalDetectForm.getDeadAheadChkC6()));

			if(!StringUtil.isNullOrBlank(normalDetectForm.getDeadAheadChkC1()))//左前大灯
			{
				if(normalDetectForm.getDeadAheadChkC1().equals("1"))
				{
					//扣1
					externalGrade = externalGrade - 1;
				}else{
					//扣2.5
					externalGrade = externalGrade - 2.5;
				}					
			}	
			if(!StringUtil.isNullOrBlank(normalDetectForm.getDeadAheadChkC2()))//右前大灯
			{
				if(normalDetectForm.getDeadAheadChkC2().equals("1"))
				{
					//扣1
					externalGrade = externalGrade - 1;
				}else{
					//扣2.5
					externalGrade = externalGrade - 2.5;
				}				
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getDeadAheadChkC3()))//前保险杠
			{
				if(normalDetectForm.getDeadAheadChkC3().equals("1"))
				{
					//扣1
					externalGrade = externalGrade - 1;
				}else{
					//扣2.5
					externalGrade = externalGrade - 2.5;
				}			
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getDeadAheadChkC4()))//发动机舱盖
			{
				if(normalDetectForm.getDeadAheadChkC4().equals("1"))
				{
					//扣1
					externalGrade = externalGrade - 1;
				}else{
					//扣2.5
					externalGrade = externalGrade - 2.5;
				}				
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getDeadAheadChkC5()))//进气格栅
			{
				if(normalDetectForm.getDeadAheadChkC5().equals("1"))
				{
					//扣1
					externalGrade = externalGrade - 1;
				}else{
					//扣2.5
					externalGrade = externalGrade - 2.5;
				}				
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getDeadAheadChkC6()))//前下边沿
			{
				if(normalDetectForm.getDeadAheadChkC6().equals("1"))
				{
					//扣1
					externalGrade = externalGrade - 1;
				}else{
					//扣2.5
					externalGrade = externalGrade - 2.5;
				}					
			}
			topView.setDeadAheadChk1(getdetectStr(normalDetectForm.getDeadAheadChkS1(),normalDetectForm.getDeadAheadChkC1()));
			topView.setDeadAheadChk2(getdetectStr(normalDetectForm.getDeadAheadChkS2(),normalDetectForm.getDeadAheadChkC2()));
			topView.setDeadAheadChk3(getdetectStr(normalDetectForm.getDeadAheadChkS3(),normalDetectForm.getDeadAheadChkC3()));
			topView.setDeadAheadChk4(getdetectStr(normalDetectForm.getDeadAheadChkS4(),normalDetectForm.getDeadAheadChkC4()));
			topView.setDeadAheadChk5(getdetectStr(normalDetectForm.getDeadAheadChkS5(),normalDetectForm.getDeadAheadChkC5()));
			topView.setDeadAheadChk6(getdetectStr(normalDetectForm.getDeadAheadChkS6(),normalDetectForm.getDeadAheadChkC6()));
			uc.removeAttribute(DETECT_POSITION);
			actionForward = "position4";
			uc.setAttribute(DETECT_POSITION, "4");
		}
		if(position.equals("5"))
		{
			//五、发动机舱内检测录入
			view.setEngineChkS1(transStr(normalDetectForm.getEngineChkS1()));
			view.setEngineChkS2(transStr(normalDetectForm.getEngineChkS2()));
			view.setEngineChkS3(transStr(normalDetectForm.getEngineChkS3()));
			view.setEngineChkS4(transStr(normalDetectForm.getEngineChkS4()));
			view.setEngineChkS5(transStr(normalDetectForm.getEngineChkS5()));
			view.setEngineChkS6(transStr(normalDetectForm.getEngineChkS6()));
			view.setEngineChkS7(transStr(normalDetectForm.getEngineChkS7()));
			view.setEngineChkS8(transStr(normalDetectForm.getEngineChkS8()));
			
			view.setEngineChkC1(transStr(normalDetectForm.getEngineChkC1()));
			view.setEngineChkC2(transStr(normalDetectForm.getEngineChkC2()));
			view.setEngineChkC5(transStr(normalDetectForm.getEngineChkC5()));
			view.setEngineChkC6(transStr(normalDetectForm.getEngineChkC6()));

			if(!StringUtil.isNullOrBlank(normalDetectForm.getEngineChkC1()))//前防撞梁
			{
				if(normalDetectForm.getEngineChkC1().equals("1"))
				{
					restsGrade = restsGrade - 2;
				}else{
					restsGrade = restsGrade - 5;
				}						
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getEngineChkC2()))//水箱框架
			{
				if(normalDetectForm.getEngineChkC2().equals("1"))
				{
					engineGrade = engineGrade - 5;
				}else{
					engineGrade = engineGrade - 10;
				}					
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getEngineChkS3()))//左侧前部纵梁
			{
				 topView.setTroubleCar(1);	
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getEngineChkS4()))//右侧前部纵梁
			{
				 topView.setTroubleCar(1);
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getEngineChkC5()))//发动机舱内左侧护板
			{
				if(normalDetectForm.getEngineChkC5().equals("1"))
				{
					engineGrade = engineGrade - 5;
				}else{
					engineGrade = engineGrade - 10;
				}						
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getEngineChkC6()))//发动机舱内右侧护板
			{
				if(normalDetectForm.getEngineChkC6().equals("1"))
				{
					engineGrade = engineGrade - 5;
				}else{
					engineGrade = engineGrade - 10;
				}					
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getEngineChkS7()))//左前减震悬挂
			{
				topView.setTroubleCar(1);
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getEngineChkS8()))//右前减震悬挂
			{
				topView.setTroubleCar(1);
			}
			topView.setEngineChk1(getdetectStr(normalDetectForm.getEngineChkS1(),normalDetectForm.getEngineChkC1()));
			topView.setEngineChk2(getdetectStr(normalDetectForm.getEngineChkS2(),normalDetectForm.getEngineChkC2()));
			topView.setEngineChk3(transStr(normalDetectForm.getEngineChkS3()));
			topView.setEngineChk4(transStr(normalDetectForm.getEngineChkS4()));
			topView.setEngineChk5(getdetectStr(normalDetectForm.getEngineChkS5(),normalDetectForm.getEngineChkC5()));
			topView.setEngineChk6(getdetectStr(normalDetectForm.getEngineChkS6(),normalDetectForm.getEngineChkC6()));
			topView.setEngineChk7(transStr(normalDetectForm.getEngineChkS7()));
			topView.setEngineChk8(transStr(normalDetectForm.getEngineChkS8()));
			uc.removeAttribute(DETECT_POSITION);
			actionForward = "position5";
			uc.setAttribute(DETECT_POSITION, "5");
		}
		if(position.equals("6"))
		{
			 //六、右前翼子板检测录入
			view.setPanelFenerRhChkS1(transStr(normalDetectForm.getPanelFenerRhChkS1()));
			view.setPanelFenerRhChkS2(transStr(normalDetectForm.getPanelFenerRhChkS2()));
			view.setPanelFenerRhChkS3(transStr(normalDetectForm.getPanelFenerRhChkS3()));
			view.setPanelFenerRhChkS4(transStr(normalDetectForm.getPanelFenerRhChkS4()));
			view.setPanelFenerRhChkS5(transStr(normalDetectForm.getPanelFenerRhChkS5()));
			view.setPanelFenerRhChkS6(transStr(normalDetectForm.getPanelFenerRhChkS6()));
			
			view.setPanelFenerRhChkC1(transStr(normalDetectForm.getPanelFenerRhChkC1()));
			view.setPanelFenerRhChkC2(transStr(normalDetectForm.getPanelFenerRhChkC2()));
			view.setPanelFenerRhChkC3(transStr(normalDetectForm.getPanelFenerRhChkC3()));
			view.setPanelFenerRhChkC4(transStr(normalDetectForm.getPanelFenerRhChkC4()));
			view.setPanelFenerRhChkC5(transStr(normalDetectForm.getPanelFenerRhChkC5()));
			view.setPanelFenerRhChkC6(transStr(normalDetectForm.getPanelFenerRhChkC6()));				
			
			if(!StringUtil.isNullOrBlank(normalDetectForm.getPanelFenerRhChkC1()))//前挡风玻璃
			{
				if(normalDetectForm.getPanelFenerRhChkC1().equals("1"))
				{
					//扣1
					externalGrade = externalGrade - 1;
				}else{
					//扣2.5
					externalGrade = externalGrade - 2.5;
				}					
			}	
			if(!StringUtil.isNullOrBlank(normalDetectForm.getPanelFenerRhChkC2()))//右前翼子板
			{
				if(normalDetectForm.getPanelFenerRhChkC2().equals("1"))
				{
					//扣1
					externalGrade = externalGrade - 1;
				}else{
					//扣2.5
					externalGrade = externalGrade - 2.5;
				}					
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getPanelFenerRhChkC3()))//右前轮胎	
			{
				if(normalDetectForm.getPanelFenerRhChkC3().equals("1"))
				{
					//扣1
					externalGrade = externalGrade - 1;
				}else{
					//扣2.5
					externalGrade = externalGrade - 2.5;
				}				
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getPanelFenerRhChkC4()))//右前轮毂
			{
				if(normalDetectForm.getPanelFenerRhChkC4().equals("1"))
				{
					//扣1
					externalGrade = externalGrade - 1;
				}else{
					//扣2.5
					externalGrade = externalGrade - 2.5;
				}				
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getPanelFenerRhChkC5()))//右前翼子板内衬
			{
				if(normalDetectForm.getPanelFenerRhChkC5().equals("1"))
				{
					restsGrade = restsGrade - 2;
				}else{
					restsGrade = restsGrade - 5;
				}				
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getPanelFenerRhChkC6()))//右前减震器
			{
				topView.setTroubleCar(1); 
			}
			topView.setPanelFenerRhChk1(getdetectStr(normalDetectForm.getPanelFenerRhChkS1(),normalDetectForm.getPanelFenerRhChkC1()));
			topView.setPanelFenerRhChk2(getdetectStr(normalDetectForm.getPanelFenerRhChkS2(),normalDetectForm.getPanelFenerRhChkC2()));
			topView.setPanelFenerRhChk3(getdetectStr(normalDetectForm.getPanelFenerRhChkS3(),normalDetectForm.getPanelFenerRhChkC3()));
			topView.setPanelFenerRhChk4(getdetectStr(normalDetectForm.getPanelFenerRhChkS4(),normalDetectForm.getPanelFenerRhChkC4()));
			topView.setPanelFenerRhChk5(getdetectStr(normalDetectForm.getPanelFenerRhChkS5(),normalDetectForm.getPanelFenerRhChkC5()));
			topView.setPanelFenerRhChk6(getdetectStr(normalDetectForm.getPanelFenerRhChkS6(),normalDetectForm.getPanelFenerRhChkC6()));
			uc.removeAttribute(DETECT_POSITION);
			actionForward = "position6";
			uc.setAttribute(DETECT_POSITION, "6");
		}
		if(position.equals("7"))
		{
			//七、右前门检测录入
			view.setFrontRightChkS1(transStr(normalDetectForm.getFrontRightChkS1()));
			view.setFrontRightChkS2(transStr(normalDetectForm.getFrontRightChkS2()));
			view.setFrontRightChkS3(transStr(normalDetectForm.getFrontRightChkS3()));
			view.setFrontRightChkS4(transStr(normalDetectForm.getFrontRightChkS4()));
			view.setFrontRightChkS5(transStr(normalDetectForm.getFrontRightChkS5()));
			view.setFrontRightChkS6(transStr(normalDetectForm.getFrontRightChkS6()));
			view.setFrontRightChkS7(transStr(normalDetectForm.getFrontRightChkS7()));
			view.setFrontRightChkS8(transStr(normalDetectForm.getFrontRightChkS8()));
			view.setFrontRightChkS9(transStr(normalDetectForm.getFrontRightChkS9()));
			view.setFrontRightChkS10(transStr(normalDetectForm.getFrontRightChkS10()));
			view.setFrontRightChkS11(transStr(normalDetectForm.getFrontRightChkS11()));
			view.setFrontRightChkS12(transStr(normalDetectForm.getFrontRightChkS12()));
			view.setFrontRightChkS13(transStr(normalDetectForm.getFrontRightChkS13()));
			
			view.setFrontRightChkC1(transStr(normalDetectForm.getFrontRightChkC1()));
			view.setFrontRightChkC4(transStr(normalDetectForm.getFrontRightChkC4()));
			view.setFrontRightChkC5(transStr(normalDetectForm.getFrontRightChkC5()));
			view.setFrontRightChkC6(transStr(normalDetectForm.getFrontRightChkC6()));
			view.setFrontRightChkC7(transStr(normalDetectForm.getFrontRightChkC7()));
			view.setFrontRightChkC8(transStr(normalDetectForm.getFrontRightChkC8()));
			view.setFrontRightChkC9(transStr(normalDetectForm.getFrontRightChkC9()));
			view.setFrontRightChkC10(transStr(normalDetectForm.getFrontRightChkC10()));
			view.setFrontRightChkC11(transStr(normalDetectForm.getFrontRightChkC11()));
			view.setFrontRightChkC12(transStr(normalDetectForm.getFrontRightChkC12()));
 												
			if(!StringUtil.isNullOrBlank(normalDetectForm.getFrontRightChkC1()))//右前门
			{
				if(normalDetectForm.getFrontRightChkC1().equals("1"))
				{
					//扣1
					externalGrade = externalGrade - 1;
				}else{
					//扣2.5
					externalGrade = externalGrade - 2.5;
				}				
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getFrontRightChkS2()))//右A柱
			{
				topView.setTroubleCar(1);  
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getFrontRightChkS3()))//右B柱
			{
				topView.setTroubleCar(1);  
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getFrontRightChkC4()))//右前门内饰
			{
				//1 2 2 4 内饰
				if(normalDetectForm.getFrontRightChkC4().equals("1"))
				{
					internalGrade = internalGrade - 2;
				}else{
					internalGrade = internalGrade - 4;
				}				
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getFrontRightChkC5()))//右前门玻璃
			{
				if(normalDetectForm.getFrontRightChkC5().equals("1"))
				{
					//扣1
					externalGrade = externalGrade - 1;
				}else{
					//扣2.5
					externalGrade = externalGrade - 2.5;
				}				
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getFrontRightChkC6()))//右前地毯
			{
				//1 2 2 4 内饰
				if(normalDetectForm.getFrontRightChkC6().equals("1"))
				{
					internalGrade = internalGrade - 2;
				}else{
					internalGrade = internalGrade - 4;
				}				
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getFrontRightChkC7()))//右前座椅
			{
				//1 2 2 4 内饰
				if(normalDetectForm.getFrontRightChkC7().equals("1"))
				{
					internalGrade = internalGrade - 2;
				}else{
					internalGrade = internalGrade - 4;
				}				
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getFrontRightChkC8()))//右A支柱内饰
			{
				//1 2 2 4 内饰
				if(normalDetectForm.getFrontRightChkC8().equals("1"))
				{
					internalGrade = internalGrade - 2;
				}else{
					internalGrade = internalGrade - 4;
				}				
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getFrontRightChkC9()))//右B支柱内饰
			{
				//1 2 2 4 内饰
				if(normalDetectForm.getFrontRightChkC9().equals("1"))
				{
					internalGrade = internalGrade - 2;
				}else{
					internalGrade = internalGrade - 4;
				}					
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getFrontRightChkC10()))//右前门下边沿
			{
				if(normalDetectForm.getFrontRightChkC10().equals("1"))
				{
					//扣1
					externalGrade = externalGrade - 1;
				}else{
					//扣2.5
					externalGrade = externalGrade - 2.5;
				}				
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getFrontRightChkC11()))//右前车身底板
			{
				if(normalDetectForm.getFrontRightChkC11().equals("1"))
				{
					restsGrade = restsGrade - 2;
				}else{
					restsGrade = restsGrade - 5;
				}					
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getFrontRightChkC12()))//右前车身底盘
			{
				if(normalDetectForm.getFrontRightChkC12().equals("1"))
				{
					restsGrade = restsGrade - 2;
				}else{
					restsGrade = restsGrade - 5;
				}					
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getFrontRightChkS13()))//右侧中部车身纵梁
			{
				topView.setTroubleCar(1); 
			}
			
			topView.setFrontRightChk1(getdetectStr(normalDetectForm.getFrontRightChkS1(),normalDetectForm.getFrontRightChkC1()));
			topView.setFrontRightChk2(transStr(normalDetectForm.getFrontRightChkS2()));
			topView.setFrontRightChk3(transStr(normalDetectForm.getFrontRightChkS3()));
			topView.setFrontRightChk4(getdetectStr(normalDetectForm.getFrontRightChkS4(),normalDetectForm.getFrontRightChkC4()));
			topView.setFrontRightChk5(getdetectStr(normalDetectForm.getFrontRightChkS5(),normalDetectForm.getFrontRightChkC5()));
			topView.setFrontRightChk6(getdetectStr(normalDetectForm.getFrontRightChkS6(),normalDetectForm.getFrontRightChkC6()));
			topView.setFrontRightChk7(getdetectStr(normalDetectForm.getFrontRightChkS7(),normalDetectForm.getFrontRightChkC7()));
			topView.setFrontRightChk8(getdetectStr(normalDetectForm.getFrontRightChkS8(),normalDetectForm.getFrontRightChkC8()));
			topView.setFrontRightChk9(getdetectStr(normalDetectForm.getFrontRightChkS9(),normalDetectForm.getFrontRightChkC9()));
			topView.setFrontRightChk10(getdetectStr(normalDetectForm.getFrontRightChkS10(),normalDetectForm.getFrontRightChkC10()));
			topView.setFrontRightChk11(getdetectStr(normalDetectForm.getFrontRightChkS11(),normalDetectForm.getFrontRightChkC11()));
			topView.setFrontRightChk12(getdetectStr(normalDetectForm.getFrontRightChkS12(),normalDetectForm.getFrontRightChkC12()));
			topView.setFrontRightChk13(transStr(normalDetectForm.getFrontRightChkS13()));

			uc.removeAttribute(DETECT_POSITION);
			actionForward = "position7";
			uc.setAttribute(DETECT_POSITION, "7");
		}
		if(position.equals("8"))
		{
			//八、右后门检测录入
			view.setRearRightChkS1(transStr(normalDetectForm.getRearRightChkS1()));
			view.setRearRightChkS2(transStr(normalDetectForm.getRearRightChkS2()));
			view.setRearRightChkS3(transStr(normalDetectForm.getRearRightChkS3()));
			view.setRearRightChkS4(transStr(normalDetectForm.getRearRightChkS4()));
			view.setRearRightChkS5(transStr(normalDetectForm.getRearRightChkS5()));
			view.setRearRightChkS6(transStr(normalDetectForm.getRearRightChkS6()));
			view.setRearRightChkS7(transStr(normalDetectForm.getRearRightChkS7()));
			view.setRearRightChkS8(transStr(normalDetectForm.getRearRightChkS8()));
			view.setRearRightChkS9(transStr(normalDetectForm.getRearRightChkS9()));
			view.setRearRightChkS10(transStr(normalDetectForm.getRearRightChkS10()));
			view.setRearRightChkS11(transStr(normalDetectForm.getRearRightChkS11()));
			
			view.setRearRightChkC1(transStr(normalDetectForm.getRearRightChkC1()));
			view.setRearRightChkC4(transStr(normalDetectForm.getRearRightChkC4()));
			view.setRearRightChkC5(transStr(normalDetectForm.getRearRightChkC5()));
			view.setRearRightChkC6(transStr(normalDetectForm.getRearRightChkC6()));
			view.setRearRightChkC7(transStr(normalDetectForm.getRearRightChkC7()));
			view.setRearRightChkC8(transStr(normalDetectForm.getRearRightChkC8()));
			view.setRearRightChkC9(transStr(normalDetectForm.getRearRightChkC9()));
			view.setRearRightChkC10(transStr(normalDetectForm.getRearRightChkC10()));
			view.setRearRightChkC11(transStr(normalDetectForm.getRearRightChkC11()));
																
			if(!StringUtil.isNullOrBlank(normalDetectForm.getRearRightChkC1()))//右后门
			{
				if(normalDetectForm.getRearRightChkC1().equals("1"))
				{
					//扣1
					externalGrade = externalGrade - 1;
				}else{
					//扣2.5
					externalGrade = externalGrade - 2.5;
				}				 
			}	
			if(!StringUtil.isNullOrBlank(normalDetectForm.getRearRightChkS2()))//右B柱
			{
				 topView.setTroubleCar(1); 	
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getRearRightChkS3()))//右C柱
			{
				 topView.setTroubleCar(1); 	
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getRearRightChkC4()))//右后门内饰
			{
				//1 2 2 4 内饰
				if(normalDetectForm.getRearRightChkC4().equals("1"))
				{
					internalGrade = internalGrade - 2;
				}else{
					internalGrade = internalGrade - 4;
				}					 
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getRearRightChkC5()))//右后门玻璃
			{
				if(normalDetectForm.getRearRightChkC5().equals("1"))
				{
					//扣1
					externalGrade = externalGrade - 1;
				}else{
					//扣2.5
					externalGrade = externalGrade - 2.5;
				}				 
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getRearRightChkC6()))//右后地毯
			{
				//1 2 2 4 内饰
				if(normalDetectForm.getRearRightChkC6().equals("1"))
				{
					internalGrade = internalGrade - 2;
				}else{
					internalGrade = internalGrade - 4;
				}				 
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getRearRightChkC7()))//右后座椅	
			{
				//1 2 2 4 内饰
				if(normalDetectForm.getRearRightChkC7().equals("1"))
				{
					internalGrade = internalGrade - 2;
				}else{
					internalGrade = internalGrade - 4;
				}				 
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getRearRightChkC8()))//右C支柱内饰
			{
				//1 2 2 4 内饰
				if(normalDetectForm.getRearRightChkC8().equals("1"))
				{
					internalGrade = internalGrade - 2;
				}else{
					internalGrade = internalGrade - 4;
				}					 
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getRearRightChkC9()))//右后门下边沿
			{
				if(normalDetectForm.getRearRightChkC9().equals("1"))
				{
					//扣1
					externalGrade = externalGrade - 1;
				}else{
					//扣2.5
					externalGrade = externalGrade - 2.5;
				}					 
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getRearRightChkC10()))//右后车身底板
			{
				if(normalDetectForm.getRearRightChkC10().equals("1"))
				{
					restsGrade = restsGrade - 2;
				}else{
					restsGrade = restsGrade - 5;
				}					 
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getRearRightChkC11()))//右后车身底盘	
			{
				if(normalDetectForm.getRearRightChkC11().equals("1"))
				{
					restsGrade = restsGrade - 2;
				}else{
					restsGrade = restsGrade - 5;
				}				 
			}
			
			topView.setRearRightChk1(getdetectStr(normalDetectForm.getRearRightChkS1(),normalDetectForm.getRearRightChkC1()));
			topView.setRearRightChk2(transStr(normalDetectForm.getRearRightChkS2()));
			topView.setRearRightChk3(transStr(normalDetectForm.getRearRightChkS3()));
			topView.setRearRightChk4(getdetectStr(normalDetectForm.getRearRightChkS4(),normalDetectForm.getRearRightChkC4()));
			topView.setRearRightChk5(getdetectStr(normalDetectForm.getRearRightChkS5(),normalDetectForm.getRearRightChkC5()));
			topView.setRearRightChk6(getdetectStr(normalDetectForm.getRearRightChkS6(),normalDetectForm.getRearRightChkC6()));
			topView.setRearRightChk7(getdetectStr(normalDetectForm.getRearRightChkS7(),normalDetectForm.getRearRightChkC7()));
			topView.setRearRightChk8(getdetectStr(normalDetectForm.getRearRightChkS8(),normalDetectForm.getRearRightChkC8()));
			topView.setRearRightChk9(getdetectStr(normalDetectForm.getRearRightChkS9(),normalDetectForm.getRearRightChkC9()));
			topView.setRearRightChk10(getdetectStr(normalDetectForm.getRearRightChkS10(),normalDetectForm.getRearRightChkC10()));
			topView.setRearRightChk11(getdetectStr(normalDetectForm.getRearRightChkS11(),normalDetectForm.getRearRightChkC11()));
			
			uc.removeAttribute(DETECT_POSITION);
			actionForward = "position8";
			uc.setAttribute(DETECT_POSITION, "8");
		}
		if(position.equals("9"))
		{
			 //九、右后翼子板检测录入
			view.setFenderRaChkS1(transStr(normalDetectForm.getFenderRaChkS1()));
			view.setFenderRaChkS2(transStr(normalDetectForm.getFenderRaChkS2()));
			view.setFenderRaChkS3(transStr(normalDetectForm.getFenderRaChkS3()));
			view.setFenderRaChkS4(transStr(normalDetectForm.getFenderRaChkS4()));
			view.setFenderRaChkS5(transStr(normalDetectForm.getFenderRaChkS5()));
			view.setFenderRaChkS6(transStr(normalDetectForm.getFenderRaChkS6()));
			
			view.setFenderRaChkC1(transStr(normalDetectForm.getFenderRaChkC1()));
			view.setFenderRaChkC2(transStr(normalDetectForm.getFenderRaChkC2()));
			view.setFenderRaChkC3(transStr(normalDetectForm.getFenderRaChkC3()));
			view.setFenderRaChkC4(transStr(normalDetectForm.getFenderRaChkC4()));
			view.setFenderRaChkC5(transStr(normalDetectForm.getFenderRaChkC5()));
			view.setFenderRaChkC6(transStr(normalDetectForm.getFenderRaChkC6()));
					
			if(!StringUtil.isNullOrBlank(normalDetectForm.getFenderRaChkC1()))//后挡风玻璃
			{
				if(normalDetectForm.getFenderRaChkC1().equals("1"))
				{
					//扣1
					externalGrade = externalGrade - 1;
				}else{
					//扣2.5
					externalGrade = externalGrade - 2.5;
				}					 
			}	
			if(!StringUtil.isNullOrBlank(normalDetectForm.getFenderRaChkC2()))//右后翼子板
			{
				if(normalDetectForm.getFenderRaChkC2().equals("1"))
				{
					//扣1
					externalGrade = externalGrade - 1;
				}else{
					//扣2.5
					externalGrade = externalGrade - 2.5;
				}				 
			}	
			if(!StringUtil.isNullOrBlank(normalDetectForm.getFenderRaChkC3()))//右后轮胎
			{
				if(normalDetectForm.getFenderRaChkC3().equals("1"))
				{
					//扣1
					externalGrade = externalGrade - 1;
				}else{
					//扣2.5
					externalGrade = externalGrade - 2.5;
				}					 
			}	
			if(!StringUtil.isNullOrBlank(normalDetectForm.getFenderRaChkC4()))//右后轮毂
			{
				if(normalDetectForm.getFenderRaChkC4().equals("1"))
				{
					//扣1
					externalGrade = externalGrade - 1;
				}else{
					//扣2.5
					externalGrade = externalGrade - 2.5;
				}				 
			}	
			if(!StringUtil.isNullOrBlank(normalDetectForm.getFenderRaChkC5()))//右后翼子板内衬
			{
				if(normalDetectForm.getFenderRaChkC5().equals("1"))
				{
					restsGrade = restsGrade - 2;
				}else{
					restsGrade = restsGrade - 5;
				}					 
			}	
			if(!StringUtil.isNullOrBlank(normalDetectForm.getFenderRaChkC6()))//右后减震器
			{
				 topView.setTroubleCar(1); 
			}	
			
			topView.setFenderRaChk1(getdetectStr(normalDetectForm.getFenderRaChkS1(),normalDetectForm.getFenderRaChkC1()));
			topView.setFenderRaChk2(getdetectStr(normalDetectForm.getFenderRaChkS2(),normalDetectForm.getFenderRaChkC2()));
			topView.setFenderRaChk3(getdetectStr(normalDetectForm.getFenderRaChkS3(),normalDetectForm.getFenderRaChkC3()));
			topView.setFenderRaChk4(getdetectStr(normalDetectForm.getFenderRaChkS4(),normalDetectForm.getFenderRaChkC4()));
			topView.setFenderRaChk5(getdetectStr(normalDetectForm.getFenderRaChkS5(),normalDetectForm.getFenderRaChkC5()));
			topView.setFenderRaChk6(getdetectStr(normalDetectForm.getFenderRaChkS6(),normalDetectForm.getFenderRaChkC6()));
			uc.removeAttribute(DETECT_POSITION);
			actionForward = "position9";
			uc.setAttribute(DETECT_POSITION, "9");
		}
		if(position.equals("10"))
		{
			//十、正后面检测录入
			view.setRightAsternChkS1(transStr(normalDetectForm.getRightAsternChkS1()));
			view.setRightAsternChkS2(transStr(normalDetectForm.getRightAsternChkS2()));
			view.setRightAsternChkS3(transStr(normalDetectForm.getRightAsternChkS3()));
			view.setRightAsternChkS4(transStr(normalDetectForm.getRightAsternChkS4()));
			view.setRightAsternChkS5(transStr(normalDetectForm.getRightAsternChkS5()));
			view.setRightAsternChkS6(transStr(normalDetectForm.getRightAsternChkS6()));
			
			view.setRightAsternChkC1(transStr(normalDetectForm.getRightAsternChkC1()));
			view.setRightAsternChkC2(transStr(normalDetectForm.getRightAsternChkC2()));
			view.setRightAsternChkC3(transStr(normalDetectForm.getRightAsternChkC3()));
			view.setRightAsternChkC4(transStr(normalDetectForm.getRightAsternChkC4()));
			view.setRightAsternChkC5(transStr(normalDetectForm.getRightAsternChkC5()));
			view.setRightAsternChkC6(transStr(normalDetectForm.getRightAsternChkC6()));
			
			if(!StringUtil.isNullOrBlank(normalDetectForm.getRightAsternChkC1()))//左后尾灯
			{
				if(normalDetectForm.getRightAsternChkC1().equals("1"))
				{
					//扣1
					externalGrade = externalGrade - 1;
				}else{
					//扣2.5
					externalGrade = externalGrade - 2.5;
				}
			}	
			if(!StringUtil.isNullOrBlank(normalDetectForm.getRightAsternChkC2()))//右后尾灯
			{
				if(normalDetectForm.getRightAsternChkC2().equals("1"))
				{
					//扣1
					externalGrade = externalGrade - 1;
				}else{
					//扣2.5
					externalGrade = externalGrade - 2.5;
				}
			}	
			if(!StringUtil.isNullOrBlank(normalDetectForm.getRightAsternChkC3()))//行李箱盖
			{
				if(normalDetectForm.getRightAsternChkC3().equals("1"))
				{
					//扣1
					externalGrade = externalGrade - 1;
				}else{
					//扣2.5
					externalGrade = externalGrade - 2.5;
				}
			}	
			if(!StringUtil.isNullOrBlank(normalDetectForm.getRightAsternChkC4()))//后保险杠
			{
				if(normalDetectForm.getRightAsternChkC4().equals("1"))
				{
					//扣1
					externalGrade = externalGrade - 1;
				}else{
					//扣2.5
					externalGrade = externalGrade - 2.5;
				}
			}	
			if(!StringUtil.isNullOrBlank(normalDetectForm.getRightAsternChkC5()))//后下边沿
			{
				if(normalDetectForm.getRightAsternChkC5().equals("1"))
				{
					//扣1
					externalGrade = externalGrade - 1;
				}else{
					//扣2.5
					externalGrade = externalGrade - 2.5;
				}
			}	
			if(!StringUtil.isNullOrBlank(normalDetectForm.getRightAsternChkC6()))//后防撞梁
			{
				if(normalDetectForm.getRightAsternChkC6().equals("1"))
				{
					restsGrade = restsGrade - 2;
				}else{
					restsGrade = restsGrade - 5;
				}
			}	
			
			topView.setRightAsternChk1(getdetectStr(normalDetectForm.getRightAsternChkS1(),normalDetectForm.getRightAsternChkC1()));
			topView.setRightAsternChk2(getdetectStr(normalDetectForm.getRightAsternChkS2(),normalDetectForm.getRightAsternChkC2()));
			topView.setRightAsternChk3(getdetectStr(normalDetectForm.getRightAsternChkS3(),normalDetectForm.getRightAsternChkC3()));
			topView.setRightAsternChk4(getdetectStr(normalDetectForm.getRightAsternChkS4(),normalDetectForm.getRightAsternChkC4()));
			topView.setRightAsternChk5(getdetectStr(normalDetectForm.getRightAsternChkS5(),normalDetectForm.getRightAsternChkC5()));
			topView.setRightAsternChk6(getdetectStr(normalDetectForm.getRightAsternChkS6(),normalDetectForm.getRightAsternChkC6()));
			uc.removeAttribute(DETECT_POSITION);
			actionForward = "position10";
			uc.setAttribute(DETECT_POSITION, "10");
		}
		if(position.equals("11"))
		{
			//十一、行李箱内侧检测录入
			view.setLuggageChkS1(transStr(normalDetectForm.getLuggageChkS1()));
			view.setLuggageChkS2(transStr(normalDetectForm.getLuggageChkS2()));
			view.setLuggageChkS3(transStr(normalDetectForm.getLuggageChkS3()));
			view.setLuggageChkS4(transStr(normalDetectForm.getLuggageChkS4()));
			view.setLuggageChkS5(transStr(normalDetectForm.getLuggageChkS5()));
			view.setLuggageChkS6(transStr(normalDetectForm.getLuggageChkS6()));
			view.setLuggageChkS7(transStr(normalDetectForm.getLuggageChkS7()));
			view.setLuggageChkS8(transStr(normalDetectForm.getLuggageChkS8()));
			view.setLuggageChkS9(transStr(normalDetectForm.getLuggageChkS9()));
			view.setLuggageChkS10(transStr(normalDetectForm.getLuggageChkS10()));
			
			view.setLuggageChkC1(transStr(normalDetectForm.getLuggageChkC1()));
			view.setLuggageChkC2(transStr(normalDetectForm.getLuggageChkC2()));
			view.setLuggageChkC5(transStr(normalDetectForm.getLuggageChkC5()));
			view.setLuggageChkC6(transStr(normalDetectForm.getLuggageChkC6()));
			view.setLuggageChkC9(transStr(normalDetectForm.getLuggageChkC9()));
			view.setLuggageChkC10(transStr(normalDetectForm.getLuggageChkC10()));
										
			if(!StringUtil.isNullOrBlank(normalDetectForm.getLuggageChkC1()))//行李箱内左侧护板
			{
				if(normalDetectForm.getLuggageChkC1().equals("1"))
				{
					restsGrade = restsGrade - 2;
				}else{
					restsGrade = restsGrade - 5;
				}
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getLuggageChkC2()))//行李箱内右侧护板
			{
				if(normalDetectForm.getLuggageChkC2().equals("1"))
				{
					restsGrade = restsGrade - 2;
				}else{
					restsGrade = restsGrade - 5;
				}
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getLuggageChkS3()))//左后减震悬挂
			{
				topView.setTroubleCar(1); 	
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getLuggageChkS4()))//右后减震悬挂
			{
				topView.setTroubleCar(1); 	
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getLuggageChkC5()))//千斤顶
			{
				if(normalDetectForm.getLuggageChkC5().equals("1"))
				{
					restsGrade = restsGrade - 2;
				}else{
					restsGrade = restsGrade - 5;
				}
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getLuggageChkC6()))//三角警示牌
			{
				if(normalDetectForm.getLuggageChkC6().equals("1"))
				{
					restsGrade = restsGrade - 2;
				}else{
					restsGrade = restsGrade - 5;
				}
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getLuggageChkS7()))//左侧后部纵梁
			{
				topView.setTroubleCar(1); 	
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getLuggageChkS8()))//右侧后部纵梁
			{
				topView.setTroubleCar(1); 	
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getLuggageChkC9()))//备胎	
			{
				topView.setTroubleCar(1);
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getLuggageChkC10()))//行李箱内侧底板
			{
				if(normalDetectForm.getLuggageChkC10().equals("1"))
				{
					restsGrade = restsGrade - 2;
				}else{
					restsGrade = restsGrade - 5;
				}
			}
			
			topView.setLuggageChk1(getdetectStr(normalDetectForm.getLuggageChkS1(),normalDetectForm.getLuggageChkC1()));
			topView.setLuggageChk2(getdetectStr(normalDetectForm.getLuggageChkS2(),normalDetectForm.getLuggageChkC2()));
			topView.setLuggageChk3(transStr(normalDetectForm.getLuggageChkS3()));
			topView.setLuggageChk4(transStr(normalDetectForm.getLuggageChkS4()));
			topView.setLuggageChk5(getdetectStr(normalDetectForm.getLuggageChkS5(),normalDetectForm.getLuggageChkC5()));
			topView.setLuggageChk6(getdetectStr(normalDetectForm.getLuggageChkS6(),normalDetectForm.getLuggageChkC6()));
			topView.setLuggageChk7(transStr(normalDetectForm.getLuggageChkS7()));
			topView.setLuggageChk8(transStr(normalDetectForm.getLuggageChkS8()));
			topView.setLuggageChk9(getdetectStr(normalDetectForm.getLuggageChkS9(),normalDetectForm.getLuggageChkC9()));
			topView.setLuggageChk10(getdetectStr(normalDetectForm.getLuggageChkS10(),normalDetectForm.getLuggageChkC10()));
			
			uc.removeAttribute(DETECT_POSITION);
			actionForward = "position11";
			uc.setAttribute(DETECT_POSITION, "11");
		}
		if(position.equals("12"))
		{
			 //十二、左后翼子板检测录入
			view.setFenderLaChkS1(transStr(normalDetectForm.getFenderLaChkS1()));
			view.setFenderLaChkS2(transStr(normalDetectForm.getFenderLaChkS2()));
			view.setFenderLaChkS3(transStr(normalDetectForm.getFenderLaChkS3()));
			view.setFenderLaChkS4(transStr(normalDetectForm.getFenderLaChkS4()));
			view.setFenderLaChkS5(transStr(normalDetectForm.getFenderLaChkS5()));
			view.setFenderLaChkS6(transStr(normalDetectForm.getFenderLaChkS6()));
			
			view.setFenderLaChkC1(transStr(normalDetectForm.getFenderLaChkC1()));
			view.setFenderLaChkC2(transStr(normalDetectForm.getFenderLaChkC2()));
			view.setFenderLaChkC3(transStr(normalDetectForm.getFenderLaChkC3()));
			view.setFenderLaChkC4(transStr(normalDetectForm.getFenderLaChkC4()));
			view.setFenderLaChkC5(transStr(normalDetectForm.getFenderLaChkC5()));
			view.setFenderLaChkC6(transStr(normalDetectForm.getFenderLaChkC6()));
				
			if(!StringUtil.isNullOrBlank(normalDetectForm.getFenderLaChkC1()))//后挡风玻璃
			{
				if(normalDetectForm.getFenderLaChkC1().equals("1"))
				{
					//扣1
					externalGrade = externalGrade - 1;
				}else{
					//扣2.5
					externalGrade = externalGrade - 2.5;
				}
			}	
			if(!StringUtil.isNullOrBlank(normalDetectForm.getFenderLaChkC2()))//左后翼子板
			{
				if(normalDetectForm.getFenderLaChkC2().equals("1"))
				{
					//扣1
					externalGrade = externalGrade - 1;
				}else{
					//扣2.5
					externalGrade = externalGrade - 2.5;
				}
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getFenderLaChkC3()))//左后轮胎
			{
				if(normalDetectForm.getFenderLaChkC3().equals("1"))
				{
					//扣1
					externalGrade = externalGrade - 1;
				}else{
					//扣2.5
					externalGrade = externalGrade - 2.5;
				}
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getFenderLaChkC4()))//左后轮毂
			{
				if(normalDetectForm.getFenderLaChkC4().equals("1"))
				{
					//扣1
					externalGrade = externalGrade - 1;
				}else{
					//扣2.5
					externalGrade = externalGrade - 2.5;
				}
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getFenderLaChkC5()))//左后翼子板内衬
			{
				if(normalDetectForm.getFenderLaChkC5().equals("1"))
				{
					restsGrade = restsGrade - 2;
				}else{
					restsGrade = restsGrade - 5;
				}
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getFenderLaChkC6()))//左后减震器
			{
				topView.setTroubleCar(1); 	
			}
			topView.setFenderLaChk1(getdetectStr(normalDetectForm.getFenderLaChkS1(),normalDetectForm.getFenderLaChkC1()));
			topView.setFenderLaChk2(getdetectStr(normalDetectForm.getFenderLaChkS2(),normalDetectForm.getFenderLaChkC2()));
			topView.setFenderLaChk3(getdetectStr(normalDetectForm.getFenderLaChkS3(),normalDetectForm.getFenderLaChkC3()));
			topView.setFenderLaChk4(getdetectStr(normalDetectForm.getFenderLaChkS4(),normalDetectForm.getFenderLaChkC4()));
			topView.setFenderLaChk5(getdetectStr(normalDetectForm.getFenderLaChkS5(),normalDetectForm.getFenderLaChkC5()));
			topView.setFenderLaChk6(getdetectStr(normalDetectForm.getFenderLaChkS6(),normalDetectForm.getFenderLaChkC6()));
			
			uc.removeAttribute(DETECT_POSITION);
			actionForward = "position12";
			uc.setAttribute(DETECT_POSITION, "12");
		}
		if(position.equals("13"))
		{
			//十三、左后门检测录入
			view.setRearLeftChkS1(transStr(normalDetectForm.getRearLeftChkS1()));
			view.setRearLeftChkS2(transStr(normalDetectForm.getRearLeftChkS2()));
			view.setRearLeftChkS3(transStr(normalDetectForm.getRearLeftChkS3()));
			view.setRearLeftChkS4(transStr(normalDetectForm.getRearLeftChkS4()));
			view.setRearLeftChkS5(transStr(normalDetectForm.getRearLeftChkS5()));
			view.setRearLeftChkS6(transStr(normalDetectForm.getRearLeftChkS6()));
			view.setRearLeftChkS7(transStr(normalDetectForm.getRearLeftChkS7()));
			view.setRearLeftChkS8(transStr(normalDetectForm.getRearLeftChkS8()));
			view.setRearLeftChkS9(transStr(normalDetectForm.getRearLeftChkS9()));
			view.setRearLeftChkS10(transStr(normalDetectForm.getRearLeftChkS10()));
			view.setRearLeftChkS11(transStr(normalDetectForm.getRearLeftChkS11()));
			
			view.setRearLeftChkC1(transStr(normalDetectForm.getRearLeftChkC1()));
			view.setRearLeftChkC4(transStr(normalDetectForm.getRearLeftChkC4()));
			view.setRearLeftChkC5(transStr(normalDetectForm.getRearLeftChkC5()));
			view.setRearLeftChkC6(transStr(normalDetectForm.getRearLeftChkC6()));
			view.setRearLeftChkC7(transStr(normalDetectForm.getRearLeftChkC7()));
			view.setRearLeftChkC8(transStr(normalDetectForm.getRearLeftChkC8()));
			view.setRearLeftChkC9(transStr(normalDetectForm.getRearLeftChkC9()));
			view.setRearLeftChkC10(transStr(normalDetectForm.getRearLeftChkC10()));
			view.setRearLeftChkC11(transStr(normalDetectForm.getRearLeftChkC11()));
										
			if(!StringUtil.isNullOrBlank(normalDetectForm.getRearLeftChkC1()))//左后门
			{
				if(normalDetectForm.getRearLeftChkC1().equals("1"))
				{
					//扣1
					externalGrade = externalGrade - 1;
				}else{
					//扣2.5
					externalGrade = externalGrade - 2.5;
				}				
			}	
			if(!StringUtil.isNullOrBlank(normalDetectForm.getRearLeftChkS2()))//左B柱
			{
				topView.setTroubleCar(1); 
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getRearLeftChkS3()))//左C柱
			{
				topView.setTroubleCar(1); 
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getRearLeftChkC4()))//左后门内饰
			{
				//1 2 2 4 内饰
				if(normalDetectForm.getRearLeftChkC4().equals("1"))
				{
					internalGrade = internalGrade - 2;
				}else{
					internalGrade = internalGrade - 4;
				}					
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getRearLeftChkC5()))//左后门玻璃
			{
				if(normalDetectForm.getRearLeftChkC5().equals("1"))
				{
					//扣1
					externalGrade = externalGrade - 1;
				}else{
					//扣2.5
					externalGrade = externalGrade - 2.5;
				}					
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getRearLeftChkC6()))//左后地毯
			{
				//1 2 2 4 内饰
				if(normalDetectForm.getRearLeftChkC6().equals("1"))
				{
					internalGrade = internalGrade - 2;
				}else{
					internalGrade = internalGrade - 4;
				}					
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getRearLeftChkC7()))//左后座椅
			{
				//1 2 2 4 内饰
				if(normalDetectForm.getRearLeftChkC7().equals("1"))
				{
					internalGrade = internalGrade - 2;
				}else{
					internalGrade = internalGrade - 4;
				}				
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getRearLeftChkC8()))//左C支柱内饰
			{
				//1 2 2 4 内饰
				if(normalDetectForm.getRearLeftChkC8().equals("1"))
				{
					internalGrade = internalGrade - 2;
				}else{
					internalGrade = internalGrade - 4;
				}				
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getRearLeftChkC9()))//左后门下边沿
			{
				if(normalDetectForm.getRearLeftChkC9().equals("1"))
				{
					//扣1
					externalGrade = externalGrade - 1;
				}else{
					//扣2.5
					externalGrade = externalGrade - 2.5;
				}					
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getRearLeftChkC10()))//左后车身底板
			{
				if(normalDetectForm.getRearLeftChkC10().equals("1"))
				{
					restsGrade = restsGrade - 2;
				}else{
					restsGrade = restsGrade - 5;
				}				
			}
			if(!StringUtil.isNullOrBlank(normalDetectForm.getRearLeftChkC11()))//左后车身底盘
			{
				if(normalDetectForm.getRearLeftChkC11().equals("1"))
				{
					restsGrade = restsGrade - 2;
				}else{
					restsGrade = restsGrade - 5;
				}				
			}
			
			topView.setRearLeftChk1(getdetectStr(normalDetectForm.getRearLeftChkS1(),normalDetectForm.getRearLeftChkC1()));
			topView.setRearLeftChk2(transStr(normalDetectForm.getRearLeftChkS2()));
			topView.setRearLeftChk3(transStr(normalDetectForm.getRearLeftChkS3()));
			topView.setRearLeftChk4(getdetectStr(normalDetectForm.getRearLeftChkS4(),normalDetectForm.getRearLeftChkC4()));
			topView.setRearLeftChk5(getdetectStr(normalDetectForm.getRearLeftChkS5(),normalDetectForm.getRearLeftChkC5()));
			topView.setRearLeftChk6(getdetectStr(normalDetectForm.getRearLeftChkS6(),normalDetectForm.getRearLeftChkC6()));
			topView.setRearLeftChk7(getdetectStr(normalDetectForm.getRearLeftChkS7(),normalDetectForm.getRearLeftChkC7()));
			topView.setRearLeftChk8(getdetectStr(normalDetectForm.getRearLeftChkS8(),normalDetectForm.getRearLeftChkC8()));
			topView.setRearLeftChk9(getdetectStr(normalDetectForm.getRearLeftChkS9(),normalDetectForm.getRearLeftChkC9()));
			topView.setRearLeftChk10(getdetectStr(normalDetectForm.getRearLeftChkS10(),normalDetectForm.getRearLeftChkC10()));
			topView.setRearLeftChk11(getdetectStr(normalDetectForm.getRearLeftChkS11(),normalDetectForm.getRearLeftChkC11()));
			uc.removeAttribute(DETECT_POSITION);
			actionForward = "position13";
			uc.setAttribute(DETECT_POSITION, "13");
		}
		if(position.equals("14"))
		{
			//十四、车顶检测录入
			view.setCarRoofChkS1(transStr(normalDetectForm.getCarRoofChkS1()));
			view.setCarRoofChkC1(transStr(normalDetectForm.getCarRoofChkC1()));
//			 double externalGrade = topView.getExternalGrade();// 外装评分 1 2.5s
//			 double internalGrade = topView.getInternalGrade();// 内装评分 1 2 2 4 内饰
//			 double engineGrade = topView.getEngineGrade();// 发动机评分
//			 double electrinicsGrade = topView.getElectrinicsGrade();// 电子设备评分 5
//			 double restsGrade = topView.getRestsGrade();// 其他设备评分 2 5
// 	 	topView.setTroubleCar(1); 	
			if(!StringUtil.isNullOrBlank(normalDetectForm.getCarRoofChkC1()))//车顶
			{
				if(normalDetectForm.getCarRoofChkC1().equals("1"))
				{
					//扣1
					externalGrade = externalGrade - 1;
				}else{
					//扣2.5
					externalGrade = externalGrade - 2.5;
				}				
			}
			topView.setCarRoofChk1(getdetectStr(normalDetectForm.getCarRoofChkS1(),normalDetectForm.getCarRoofChkC1()));
			uc.removeAttribute(DETECT_POSITION);
			actionForward = "position14";
			uc.setAttribute(DETECT_POSITION, "14");
		}
		if(position.equals("15"))
		{
			//十五、检测说明录入
			view.setCarDescribe(normalDetectForm.getCarDescribe());
			
			topView.setCarDescribe(normalDetectForm.getCarDescribe());
			uc.removeAttribute(DETECT_POSITION);
			actionForward = "position15";
			uc.setAttribute(DETECT_POSITION, "15");
		}

		topView.setExternalGrade(externalGrade);
		topView.setInternalGrade(internalGrade);
		topView.setEngineGrade(engineGrade);
		topView.setElectrinicsGrade(electrinicsGrade);
		topView.setRestsGrade(restsGrade);
		view.setCarSerial((String)uc.getAttribute(CARSERIAL));
		request.setAttribute(TmsConstants.VIEWHELP, view);
		uc.setAttribute(DETECT_INPUT_DATA, topView);//将检测信息set到uc中带进入首页时查看
		logger.debug(this.getClass().getName() + "#doAction was completed.");
		return mapping.findForward(TmsConstants.SUCCESS);
	}

	private String transStr(String str)
	{
		if("".equals(str)||str == null)
		{
			return "-";
		}
		
		return str;
	}
	
	/**
	 * 
	 * 合并字符串，放到首页检测报告录入中
	 */
	private String getdetectStr(String decName,String decLevel)
	{
		String str = "-";
		if(!"".equals(StringUtil.isNULL(decName))&&!"".equals(StringUtil.isNULL(decLevel)))
		{
			//如果都不为空,缺陷+程度
			return (decName+decLevel);
		}
		if("".equals(StringUtil.isNULL(decName))&& "".equals(StringUtil.isNULL(decLevel)))
		{
			//同时为空，则返回"-"
			return str;
		}
		if(!"".equals(StringUtil.isNULL(decName)))
		{
			//如果缺陷名字不为空，则返回缺陷名
			return decName;
		}
		return str;
	}

}
